import React from 'react'
import {
  HashRouter as Router,
} from 'react-router-dom'
import RouteWithSubRoutes from './components/base/RouteWithSubRoutes'
import routes from './router/router.js'
import './App.css'

const App = () => (
  <Router>
    <div className="height">
      {routes.map((route, i) => (
        <RouteWithSubRoutes key={i} {...route}/>
      ))}
    </div>
  </Router>
)

export default App
